package com.cbgolf.oa.event;

import com.cbgolf.oa.entity.ListBean;
import java.util.List;

public class EventStatistics {

//  public static final int


  /**
   * 消息目的地
   */
  public int msgTarget;
  /**
   * 请求操作 refresh loadmore initdata
   */
  public int requestEvent;

  /**
   * error msg code
   */
  public String errorMsg;
  public int errorCode;

  public List<ListBean> listStatisticsData;
  public List<ListBean> listCaddie;

  public ListBean playerData;
  public String levelName;

  public static class Builder {

    EventStatistics bean;

    public Builder() {
      bean = new EventStatistics();
    }

    public Builder setListStatisticsData(List<ListBean> list) {
      bean.listStatisticsData = list;
      return this;
    }

    public Builder setlevelName(String name) {
      bean.levelName = name;
      return this;
    }

    public Builder setListCaddie(List<ListBean> list) {
      bean.listCaddie = list;
      return this;
    }

    public Builder setPlayerData(ListBean playerData) {
      bean.playerData = playerData;
      return this;
    }

    public Builder setRequestEvent(int event) {
      bean.requestEvent = event;
      return this;
    }

    public Builder setError(String error, int code) {
      bean.errorMsg = error;
      bean.errorCode = code;
      return this;
    }

    public Builder setTarget(int target) {
      bean.msgTarget = target;
      return this;
    }

    public EventStatistics build() {
      return bean;
    }
  }

}
